<template>
  <div class="title">
    <div class="title-left">
      <div class="title-left-image">
        <router-link to="/"> 首页 </router-link>
      </div>
      <router-link to="/problem">
        <div class="problem">编程题</div>
      </router-link>
      <router-link to="/problem/choice">
        <div class="choice">选择题</div>
      </router-link>
      <router-link to="/problem/fillinblanks">
        <div class="blanks">填空题</div>
      </router-link>
      <router-link to="/advices">
        <div class="advices">统计</div>
      </router-link>
    </div>
    <div></div>
    <div class="title-right">
      <el-dropdown>
        <span class="el-dropdown-link">
          <el-avatar
            src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
          ></el-avatar>
        </span>
        <el-dropdown-menu slot="dropdown">
          <el-dropdown-item icon="el-icon-plus">黄金糕</el-dropdown-item>
          <el-dropdown-item icon="el-icon-circle-plus">狮子头</el-dropdown-item>
          <el-dropdown-item icon="el-icon-circle-plus-outline"
            >螺蛳粉</el-dropdown-item
          >
          <el-dropdown-item icon="el-icon-check">双皮奶</el-dropdown-item>
          <el-dropdown-item icon="el-icon-circle-check"
            >蚵仔煎</el-dropdown-item
          >
        </el-dropdown-menu>
      </el-dropdown>
    </div>
  </div>
</template>


<script>
export default {
  data() {
    name: "Title";
    return {
      visible: false,
    };
  },
};
</script>


<style>
.home {
  line-height: 4vh;
  text-align: center;
}
.problem {
  line-height: 4vh;
  text-align: center;
}
.choice {
  line-height: 4vh;
  text-align: center;
}
.blanks {
  line-height: 4vh;
  text-align: center;
}
.advices {
  line-height: 4vh;
  text-align: center;
}
.evaluate {
  line-height: 4vh;
  text-align: center;
}
.el-dropdown-link {
  display: flex;
  justify-content: flex-end;
  cursor: pointer;
  color: #409eff;
}
.el-icon-arrow-down {
  font-size: 12px;
}
.demonstration {
  display: block;
  color: #8492a6;
  font-size: 14px;
  margin-bottom: 20px;
}
.title {
  margin-left: 0px;
  height: 4vh;
  width: 100vw;
  background-color: #fff;
  border-bottom: 1px solid #dcdcdc;
  display: flex;
  justify-content: space-between;
}
.title-left {
  width: 40%;
  height: 4vh;
  margin-left: 0;
  background: #fff;
  display: flex;
}
.title-left-image {
  height: 4vh;
  width: 120px;
}
span {
  font-size: 16px;
}
a {
  width: 70px;
  height: 4vh;
  color: black;
  margin: 0px 10px;
  text-decoration: none;
  line-height: 48px;
  text-align: center;
}
a:hover {
  background-color: #bebebe;
}
.serch {
  height: 3vh;
  width: 500px;
  background-color: #fff;
  margin: auto;
  display: flex;
}
.inputType {
  width: 400px;
  height: 30px;
  text-indent: 1em;
  line-height: 34px;
  background-color: #fff;
  border: 1px solid black;
  border-top-left-radius: 17px;
  border-bottom-left-radius: 17px;
  font-size: 12px;
}
.inputType:focus {
  outline: none;
  border: 1px solid rgb(230, 32, 213);
}
.button {
  color: #fff;
  text-align: center;
  background: rgba(204, 51, 0, 1);
  border-left: 1px solid rgba(0, 0, 0, 0.45);
  width: 100px;
  height: 32px;
  line-height: 34px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}
.title-right {
  width: 60vw;
  padding-right: 50px;
  display: flex;
  justify-content: flex-end;
}
</style>
